<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>final: Referencia del Archivo C:/Documents and Settings/HP Pavilion zv/My Documents/MER/Facultad/Sisem/LOCALIZADOR/Doxygen 2/mainNC.c</title>
<link href="tabs.css" rel="stylesheet" type="text/css">
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generado por Doxygen 1.5.9 -->
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="index.html"><span>Página&nbsp;principal</span></a></li>
      <li><a href="annotated.html"><span>Estructuras&nbsp;de&nbsp;Datos</span></a></li>
      <li class="current"><a href="files.html"><span>Archivos</span></a></li>
    </ul>
  </div>
  <div class="tabs">
    <ul>
      <li><a href="files.html"><span>Lista&nbsp;de&nbsp;archivos</span></a></li>
      <li><a href="globals.html"><span>Globales</span></a></li>
    </ul>
  </div>
</div>
<div class="contents">
<h1>Referencia del Archivo C:/Documents and Settings/HP Pavilion zv/My Documents/MER/Facultad/Sisem/LOCALIZADOR/Doxygen 2/mainNC.c</h1><code>#include &quot;bsp.h&quot;</code><br>
<code>#include &quot;mrfi.h&quot;</code><br>
<code>#include &quot;bsp_leds.h&quot;</code><br>
<code>#include &quot;bsp_buttons.h&quot;</code><br>
<code>#include &quot;nwk_types.h&quot;</code><br>
<code>#include &quot;nwk_api.h&quot;</code><br>
<code>#include &quot;nwk_frame.h&quot;</code><br>
<code>#include &quot;nwk.h&quot;</code><br>
<code>#include &quot;<a class="el" href="vlo__rand_8h_source.html">vlo_rand.h</a>&quot;</code><br>
<code>#include &quot;cod_errores.h&quot;</code><br>
<code>#include &quot;<a class="el" href="_calc_pos_8h_source.html">CalcPos.h</a>&quot;</code><br>
<code>#include &quot;<a class="el" href="tabla_8h_source.html">tabla.h</a>&quot;</code><br>

<p>
<a href="main_n_c_8c_source.html">Ir al código fuente de este archivo.</a><table border="0" cellpadding="0" cellspacing="0">
<tr><td></td></tr>
<tr><td colspan="2"><br><h2>Funciones</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="main_n_c_8c.html#1e3b6d38df0786ccf7f938d60e386aae">Init</a> ()</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="main_n_c_8c.html#3edbadacbe8d30476d45c759761a7789">TXString</a> (char *cadena, int largo)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="main_n_c_8c.html#840291bc02cba5474a4cb46a9b9566fe">main</a> (void)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="main_n_c_8c.html#3241a2beddab65e0899bf27f90cacece">systemStart</a> ()</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="main_n_c_8c.html#5cfdf506a309802e07cbfd0ca5346d70">localizar</a> (float distX, float distA, float distB)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">char *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="main_n_c_8c.html#d4defa2786c2b618c997435250a05f70">float2String</a> (float numero)</td></tr>

<tr><td colspan="2"><br><h2>Variables</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">char&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="main_n_c_8c.html#e248ff6080191b4ce858dc8f7e3477de">espero</a> = 1</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">char&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="main_n_c_8c.html#1966891e271d96bc4fd35f1a0d92185e">largoMsgX</a> = 0</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">char&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="main_n_c_8c.html#b8b07b512ea5f779e5b9ef125aae2cc0">largoMsgA</a> = 0</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">char&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="main_n_c_8c.html#ce663b6ad1377f765534ea1167f28180">largoMsgB</a> = 0</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">char[MAX_APP_PAYLOAD]&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="main_n_c_8c.html#ed6d4aaee3ff8ee345eeeae300f5f0eb">msgA</a></td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">char[MAX_APP_PAYLOAD]&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="main_n_c_8c.html#98efee00decef955550f6a706b05d154">msgB</a></td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">char[MAX_APP_PAYLOAD]&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="main_n_c_8c.html#4ae96a19335f191f869bf5279850b69f">msgX</a></td></tr>

</table>
<hr><h2>Documentación de las funciones</h2>
<a class="anchor" name="d4defa2786c2b618c997435250a05f70"></a><!-- doxytag: member="mainNC.c::float2String" ref="d4defa2786c2b618c997435250a05f70" args="(float numero)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">char* float2String           </td>
          <td>(</td>
          <td class="paramtype">float&nbsp;</td>
          <td class="paramname"> <em>numero</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Convierte un float a un string para enviar por puerto serie 
<p>Definición en la línea <a class="el" href="main_n_c_8c_source.html#l00213">213</a> del archivo <a class="el" href="main_n_c_8c_source.html">mainNC.c</a>.</p>

</div>
</div><p>
<a class="anchor" name="1e3b6d38df0786ccf7f938d60e386aae"></a><!-- doxytag: member="mainNC.c::Init" ref="1e3b6d38df0786ccf7f938d60e386aae" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Init           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
salgo del main INICIALIZACION DEL SISTEMA 
<p>Definición en la línea <a class="el" href="main_x_8c_source.html#l00097">97</a> del archivo <a class="el" href="main_x_8c_source.html">mainX.c</a>.</p>

</div>
</div><p>
<a class="anchor" name="5cfdf506a309802e07cbfd0ca5346d70"></a><!-- doxytag: member="mainNC.c::localizar" ref="5cfdf506a309802e07cbfd0ca5346d70" args="(float distX, float distA, float distB)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void localizar           </td>
          <td>(</td>
          <td class="paramtype">float&nbsp;</td>
          <td class="paramname"> <em>distX</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&nbsp;</td>
          <td class="paramname"> <em>distA</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&nbsp;</td>
          <td class="paramname"> <em>distB</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

<p>Definición en la línea <a class="el" href="main_n_c_8c_source.html#l00200">200</a> del archivo <a class="el" href="main_n_c_8c_source.html">mainNC.c</a>.</p>

</div>
</div><p>
<a class="anchor" name="840291bc02cba5474a4cb46a9b9566fe"></a><!-- doxytag: member="mainNC.c::main" ref="840291bc02cba5474a4cb46a9b9566fe" args="(void)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int main           </td>
          <td>(</td>
          <td class="paramtype">void&nbsp;</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

<p>Definición en la línea <a class="el" href="main_n_c_8c_source.html#l00033">33</a> del archivo <a class="el" href="main_n_c_8c_source.html">mainNC.c</a>.</p>

</div>
</div><p>
<a class="anchor" name="3241a2beddab65e0899bf27f90cacece"></a><!-- doxytag: member="mainNC.c::systemStart" ref="3241a2beddab65e0899bf27f90cacece" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void systemStart           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Loop principal del programa atiende las funciones basandose en la lectura de banderas para evitar problemas con datos compartidos. 
<p>Definición en la línea <a class="el" href="main_n_c_8c_source.html#l00159">159</a> del archivo <a class="el" href="main_n_c_8c_source.html">mainNC.c</a>.</p>

</div>
</div><p>
<a class="anchor" name="3edbadacbe8d30476d45c759761a7789"></a><!-- doxytag: member="mainNC.c::TXString" ref="3edbadacbe8d30476d45c759761a7789" args="(char *cadena, int largo)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void TXString           </td>
          <td>(</td>
          <td class="paramtype">char *&nbsp;</td>
          <td class="paramname"> <em>cadena</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>largo</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

</div>
</div><p>
<hr><h2>Documentación de las variables</h2>
<a class="anchor" name="e248ff6080191b4ce858dc8f7e3477de"></a><!-- doxytag: member="mainNC.c::espero" ref="e248ff6080191b4ce858dc8f7e3477de" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">char <a class="el" href="main_n_c_8c.html#e248ff6080191b4ce858dc8f7e3477de">espero</a> = 1          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

<p>Definición en la línea <a class="el" href="main_n_c_8c_source.html#l00138">138</a> del archivo <a class="el" href="main_n_c_8c_source.html">mainNC.c</a>.</p>

</div>
</div><p>
<a class="anchor" name="b8b07b512ea5f779e5b9ef125aae2cc0"></a><!-- doxytag: member="mainNC.c::largoMsgA" ref="b8b07b512ea5f779e5b9ef125aae2cc0" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">char <a class="el" href="main_n_c_8c.html#b8b07b512ea5f779e5b9ef125aae2cc0">largoMsgA</a> = 0          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

<p>Definición en la línea <a class="el" href="main_n_c_8c_source.html#l00143">143</a> del archivo <a class="el" href="main_n_c_8c_source.html">mainNC.c</a>.</p>

</div>
</div><p>
<a class="anchor" name="ce663b6ad1377f765534ea1167f28180"></a><!-- doxytag: member="mainNC.c::largoMsgB" ref="ce663b6ad1377f765534ea1167f28180" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">char <a class="el" href="main_n_c_8c.html#ce663b6ad1377f765534ea1167f28180">largoMsgB</a> = 0          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

<p>Definición en la línea <a class="el" href="main_n_c_8c_source.html#l00144">144</a> del archivo <a class="el" href="main_n_c_8c_source.html">mainNC.c</a>.</p>

</div>
</div><p>
<a class="anchor" name="1966891e271d96bc4fd35f1a0d92185e"></a><!-- doxytag: member="mainNC.c::largoMsgX" ref="1966891e271d96bc4fd35f1a0d92185e" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">char <a class="el" href="main_n_c_8c.html#1966891e271d96bc4fd35f1a0d92185e">largoMsgX</a> = 0          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
largo del mensaje que hay esperando en la cola 
<p>Definición en la línea <a class="el" href="main_n_c_8c_source.html#l00142">142</a> del archivo <a class="el" href="main_n_c_8c_source.html">mainNC.c</a>.</p>

</div>
</div><p>
<a class="anchor" name="ed6d4aaee3ff8ee345eeeae300f5f0eb"></a><!-- doxytag: member="mainNC.c::msgA" ref="ed6d4aaee3ff8ee345eeeae300f5f0eb" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">char [MAX_APP_PAYLOAD] <a class="el" href="main_n_c_8c.html#ed6d4aaee3ff8ee345eeeae300f5f0eb">msgA</a>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
cola de mensajes de los nodos 
<p>Definición en la línea <a class="el" href="main_n_c_8c_source.html#l00148">148</a> del archivo <a class="el" href="main_n_c_8c_source.html">mainNC.c</a>.</p>

</div>
</div><p>
<a class="anchor" name="98efee00decef955550f6a706b05d154"></a><!-- doxytag: member="mainNC.c::msgB" ref="98efee00decef955550f6a706b05d154" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">char [MAX_APP_PAYLOAD] <a class="el" href="main_n_c_8c.html#98efee00decef955550f6a706b05d154">msgB</a>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

<p>Definición en la línea <a class="el" href="main_n_c_8c_source.html#l00149">149</a> del archivo <a class="el" href="main_n_c_8c_source.html">mainNC.c</a>.</p>

</div>
</div><p>
<a class="anchor" name="4ae96a19335f191f869bf5279850b69f"></a><!-- doxytag: member="mainNC.c::msgX" ref="4ae96a19335f191f869bf5279850b69f" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">char [MAX_APP_PAYLOAD] <a class="el" href="main_n_c_8c.html#4ae96a19335f191f869bf5279850b69f">msgX</a>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

<p>Definición en la línea <a class="el" href="main_n_c_8c_source.html#l00150">150</a> del archivo <a class="el" href="main_n_c_8c_source.html">mainNC.c</a>.</p>

</div>
</div><p>
</div>
<hr size="1"><address style="text-align: right;"><small>Generado el Mon Jun 22 08:40:32 2009 para final por&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.9 </small></address>
</body>
</html>
